package com.goods.business.converter;

import com.goods.common.model.business.Product;
import com.goods.common.model.business.ProductCategory;
import com.goods.common.model.system.Department;
import com.goods.common.vo.business.ProductVO;
import com.goods.common.vo.system.DepartmentVO;
import org.springframework.beans.BeanUtils;

/**
 * projectName: goods
 *
 * @author: ysc
 * time: 2022/12/2 17:01 周五
 * description:
 */
public class ProductCategoryConverter {

    /**
     * 转vo
     * @return
     */
    public static ProductCategory converterToProductCategoryVO(ProductCategory productCategory){
        ProductCategory productCategory1 = new ProductCategory();
        BeanUtils.copyProperties(productCategory,productCategory1);
        return productCategory1;
    }
}
